package library.doMain.Vo;

public class Result {
    /**
     * 操作是否成功
     */
    public boolean success;
    /**
     * 响应消息
     */
    public String message;
    /**
     * 响应数据1
     */
    public Object data;

    public static Result faliure(String message){
        Result result = new Result();
        result.message = message;

        return result;
    }

    public static Result success(String message,Object data){
        Result result = new Result();
        result.success = true;
        result.message = message;
        result.data = data;
        return result;
    }
}
